package com.dongdongmovie.service;
import com.dongdongmovie.pojo.AdminUser;
import com.dongdongmovie.pojo.Resources;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface Resource_Service {

    //查询主页tree
    List<Map<String, Object>> show(AdminUser a);

    //查询主页ztree
    List<Map<String, Object>> showresource();

    //查询主页ztree(角色修改用)
    List<Map<String, Object>> showresources(Integer roleId);

    //添加数据
    int add(Resources r);

    //根据id查询
    Resources showbyId(Integer resId);

    //修改数据
    int update(Resources r);

    //根据id删除
    int delete(Integer resId);
}
